import request from '@/utils/request'

/**
 * @description: 获取销售出库
 * @param {*} params
 */
export function getShipmentReport(params) {
  return request({
    url: '/shipment/report/list',
    params
  })
}

/**
 * @description: 获取报告ID
 * @param {*} params
 */
export function getShipmentReportID(params) {
  return request({
    url: '/shipment/report/reportid',
    params
  })
}

/**
 * @description: 新增销售出库检验报告
 * @param {*} data
 */
export function addShipmentReport(data) {
  return request({
    url: '/shipment/report/add',
    method: 'post',
    data
  })
}

/**
 * @description: 更新销售出库检验报告
 * @param {*} data
 */
export function updateShipmentReport(data) {
  return request({
    url: '/shipment/report/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除销售出库检验报告
 * @param {*} data
 */

export function deleteShipmentReport(data) {
  return request({
    url: '/shipment/report/delete',
    method: 'post',
    data
  })
}

/**
 * @description: 获取销售出库检验报告详情
 * @param {*} params
 */

export function getShipmentReportDetail(params) {
  return request({
    url: '/shipment/report/detail',
    params
  })
}
